﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Calc_Master.Master" CodeBehind="Calculation.aspx.vb" Inherits="Assignment_1_Right.Calculation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <label for="weight">Put Your weight here:</label><br />
    <asp:TextBox ID="tb_weight" runat="server" input type="text" name = "tb_weight" class="txt"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator1" runat="server" 
        ControlToValidate="tb_weight" ErrorMessage="greater than 0.1 and less than 200" 
        MaximumValue="200" MinimumValue="0.1"></asp:RangeValidator>
    <br />
    <label for="weight">Put Your height here:</label><br />
    <asp:TextBox ID="tb_height" input type="text" name = "tb_height" runat="server" class="txt"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator2" runat="server" 
        ControlToValidate="tb_height" 
        ErrorMessage="Value must be greater than 0.1 and less than 2.0" 
        MaximumValue="2.0" MinimumValue="0.1"></asp:RangeValidator>
    <br />
    <asp:Button ID="btn_calculate" runat="server" name="btncalculate" input type="submit" class = "btn" Text="Calculate BMI" />
    <br />
    <asp:Label ID="lbl_result" runat="server" class="txt"></asp:Label>
    <br />
</asp:Content>
